package com.suxin.config;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.stereotype.Component;

/**
 * @Classname CloseApplication
 * @Description [ TODO ]
 * @Author Tang
 * @Date 2020/12/22 17:42
 * @Created by ASUS
 */
@Component
public class CloseApplication implements ApplicationListener<ContextClosedEvent> {

    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        System.out.println("容器关闭的事件触发了..." + event);
    }
}